<%-- 
    Document   : w_requestReceipt
    Created on : Dec 5, 2013, 12:18:50 PM
    Author     : Trang
--%>

<%-- 
    Document   : w_request
    Created on : Nov 8, 2013, 4:56:52 PM
    Author     : Trang
--%>

<%@page import="database.SupplierDAO"%>
<%@page import="model.Supplier"%>
<%@page import="model.Role"%>
<%@page import="model.Staff"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>

<html>
    <style>
        .toggler { width: 500px; height: 200px; }
    </style>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Request Receipt</title>
        <link href="<%= request.getContextPath()%>/css/style_for_page.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_menu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_addtion.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/style_for_warehousing.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/adMenu.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/tHeaderFooter.css" rel="stylesheet" type="text/css"/>
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <link rel="stylesheet" href="/resources/demos/style.css" />
        <script>
            $(function() {
                $("#datepicker").datepicker();

            });
        </script>
    </head>

    <% int i = 0;%>   
    <body style="background-color: lightsteelblue;">
         <div class="headerbg">
            <div class="header"> 
                <%@include file="/include/mHeader.jsp" %>
            </div>
            <div class="adContent">
                <div class="adMenu">
                    <%@include file="/include/mMenu.jsp" %>
                </div>
            </div>
        </div>
        <div class="contentbg">
            <div class="content1" >
                <s:form theme="simple" namespace="/Administration/Request">
                    <div class="registerFormVertical" style="margin-top: 10px;">
                        <table style="float:left; margin-left: 10px; text-align: left;">
                            <tr>
                                <td style="width: 600px; text-align: left;">
                                    <p><b>Requester's Name: </b><s:property  value="staff.firstname+' '+staff.lastname" /></p>
                                    <p><b>Requester's Login Name: </b><s:property  value="staff.loginName" /></p>
                                </td >
                                <td style="width: 300px; text-align: right;">
                                    <p><b>Address: </b><s:property  value="staff.address" /></p>
                                    <p><b>Email: </b><s:property value="staff.email" /></p>   
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="registerFormVertical" style="margin-top: 10px;">
                        <h2 style="margin-left: 10px; text-align: left;">Product Information:</h2>
                        <table style="float:left; margin-left: 10px; text-align: left;">
                            <tr>
                                <td><b>Name: </b></td>
                                <td> <s:property value="product.name"/></td> 
                            </tr>
                            <tr>
                                <td><b>Product Code: </b></td>
                                <td><s:property value="product.code" /></td>
                            </tr>   
                            <tr>
                                <td><b>Request Quantity: </b></td>
                                <td><s:textfield size="20"  name ="quantity"/></td>
                            </tr> 
                        </table> 
                    </div>
               
                <div class="registerFormVertical" style="margin-top: 10px;">
                    <table style="float:left; margin-left: 10px; text-align: left;">
                        <tr>
                            <td><h2>Reason</h2></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><s:textarea name ="reason" row="3" cols="80"/></td>
                        </tr>
                        <tr> 
                            <td>
                                <s:reset value="Cancel" cssStyle="width: 96px" theme="simple" />
                            </td>
                            <td>
                                <s:submit value="Submit" action="create-request"  cssStyle="width: 96px; margin-left: 132px" theme="simple" />
                            </td>
                            <td>
                                <s:submit value="Save Draff" action="save-draff" cssStyle="width: 96px; margin-left: 132px" theme="simple" />
                            </td>
                        </tr>
                        <tr>
                            <td style="margin-left: 20px;" colspan="2"><s:actionerror /></td>
                        </tr>
                    </table>
                </div>
                   </s:form>              
            </div>
        </div>
        <footer>
            <div id="footer">
                <%@include file="/include/iFooter.jsp" %>
            </div>   
        </footer>

    </body>
</html>


